import request from '@/utils/request'

export default {
  // 列表
  query(data) {
    return request({
      url: `/v1/damage/damage/list`,
      method: 'post',
      data
    })
  },
  // 编辑
  edit(data) {
    return request({
      url: `/v1/damage/damage/update`,
      method: 'post',
      data
    })
  },
  // 明细
  detail(params) {
    return request({
      url: `/v1/damage/damage/detail`,
      method: 'get',
      params
    })
  },
  // 提交
  submit(params) {
    return request({
      url: `/v1/damage/damage/submit`,
      method: 'get',
      params
    })
  },
  // 审核
  audit(data) {
    return request({
      url: `/v1/damage/damage/verify`,
      method: 'post',
      data
    })
  },
  // 作废
  cancel(data) {
    return request({
      url: `/v1/damage/damage/disable`,
      method: 'post',
      data
    })
  }
}
